package utils;

import io.netty.channel.Channel;
import io.netty.channel.ChannelId;
import io.netty.channel.socket.SocketChannel;

import java.util.concurrent.ConcurrentHashMap;

public class SendUtils {
	public static final ConcurrentHashMap<String, ChannelId> concurrentHashMap = new ConcurrentHashMap();

	public static void put(String key, ChannelId value){
		concurrentHashMap.put(key, value);
	}

	public static ChannelId get(String key){
		return  concurrentHashMap.get(key);
	}

	public static void remove(String key){
		concurrentHashMap.remove(key);
	}

}
